class_name HoldLifePotion
extends BaseHoldItem


func use():
	var player = holder as Player
	
	GlobalData.player_data.additional_life += item_data.item_config.add_life
	GlobalData.player_data.max_hp = GlobalData.player_data.get_max_life()
	GlobalData.player_data.hp += item_data.item_config.add_life
	GlobalSignals.player_info_changed.emit()
	player.level.emit_particle("particle_add_life_effect", player.ray_cast_point.global_position)
